POV-Ray : Newsgroups : povray.binaries.images : cylindrical pattern : Re: cylindrical pattern Server Time
9 Aug 2024 13:26:24 EDT (-0400)
  Re: cylindrical pattern  
From: Jim Charter
Date: 15 Mar 2005 15:50:39
Message: <42374a9f$1@news.povray.org>
Christopher James Huff wrote:
> In article <4237206a$1@news.povray.org>, "Slime" <fak### [at] emailaddress> 
> wrote:
> 
> 
>>Two solutions:
>> - rotate your cylindrical pattern to face along the z-axis with rotate 90*x
>> - use the spherical pattern instead of cylindrical
> 
> 
> Another solution: do the rotation in the call to the function. It's a 90 
> degree rotation around one axis, so just swap two coordinates and negate 
> one of them. Since you're generating an image for the height field, it's 
> even easier to figure out...function images are sampled from the xy 
> plane, the height field uses the image for the xz plane.
> 
> function 1000, 1000 {F_Terrain(x, 0, y)}
> 
That's cool, then I could use the same function for hf and its pigment, 
just call each differently.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.